#include "hamming.h"
<<<<<<< HEAD:cxx/algorithm/src/hamming.cc
int hamming(int a,int b){
    int xorValue = a^b;
    int count = 0;
    while(xorValue){
        count += 1;
        xorValue = xorValue&(xorValue-1);
    }
    return count;
=======
int hamming(int a, int b) {
  int xorValue = a ^ b;
  int count = 0;
  while (xorValue) {
    count += 1;
    xorValue = xorValue & (xorValue - 1);
  }
  return count;
>>>>>>> dev:cxx/algorithm/common/src/hamming.cc
}
